﻿using System;
using System.Collections.Generic;
using System.Text;
using xiaodingmarket_Domain_core.Events;
using static xiaodingmarket_Domain.Models.EunmType;

namespace xiaodingmarket_Domain.Events.Order
{
    public class OrderUpdateEvent:Event
    {
        public OrderUpdateEvent(Guid id, OrderCondition condition, Guid modifyUserId, DateTime modifyTime, string remark)
        {
            Id = id;
            Condition = condition;
            ModifyUserId = modifyUserId;
            ModifyTime = modifyTime;
            Remark = remark;
            AggregateId = id;
        }

        public Guid Id { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderCondition Condition { get; set; }
        /// <summary>
        /// 修改订单者id
        /// </summary>
        public Guid ModifyUserId { get; set; }
        /// <summary>
        /// 最后一次修改订单时间
        /// </summary>
        public DateTime ModifyTime { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string Remark { get; set; }
    }
}
